package com.trigram.dao.dynamic.mapper;

import com.trigram.dao.dynamic.entity.po.ModelExtPO;
import com.trigram.dao.dynamic.mapper.dynamic.ModelDynamicSql;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.SelectProvider;
import org.mybatis.dynamic.sql.select.render.SelectStatementProvider;
import org.mybatis.dynamic.sql.util.SqlProviderAdapter;

@Mapper
public interface ModelDynamicMapper extends ModelDynamicSql {

  @SelectProvider(type = SqlProviderAdapter.class, method = "select")
  @ResultMap("ExtResultMap")
  List<ModelExtPO> selectByExtMany(SelectStatementProvider selectStatement);

}